// http://47.109.137.14/
import request from "./../utils/request";
import { catchSuccess, catchError } from '@/common/js/catch'
export const getAsyncList = (data) => {
    return request.post("/role/get", { data });
};

export const getPersonalInfo = (data) => {
    return request.post("/pages/personal/getInfo", { data });
};

export const updatePersonalInfo = async (data) => {
    const res = await request.post("/pages/personal/updateInfo", { data: data });
    if (res.code === 200) {
        catchSuccess(res.msg)
    } else {
        catchError(res.msg)
    }
};

